import request from 'umi-request';

// 训练目标树形结构
export async function getTargetTreeAll(params) {
  return request('/api/resource/function/all',{
    params
  });
}

// 更新视频信息
export async function updateVideo(data) {
  return request('/api/resource/function/update', {
    method: 'POST',
    data,
  });
}

export async function getTargetTreeSingle(params) {
  return request('/api/resource/function/info', {
    params,
  });
}
